package core.error
{
	import flash.events.Event;

	public class ErrorEvents extends Event
	{
		//START
		
		//PROPERTY
		static public const SYNTAX_ERROR:String = "!!!error 001: SYNATAX ERROR!"
		
		static public const IO_ERROR:String = "!!!error 002: IO ERROR!";
		
		static public const SECURITY_ERROR:String = "!!!error 003: SECURITY ERROR!";
		
		static public const VIEW_METHOD_MISSING:String = "!!!error 004: CAN NOT FIND THE SPECIFIED VIEW METHOD!";
		
		static public const MODEL_METHOD_MISSING:String = "!!!error 005: CAN NOT FIND THE SPECIFIED MODEL METHOD!";
		
		static public const SERVER_REFUSE:String = "!!!error 006: SERVER REFUSE!"; 
		
		static public const ELEMENT_MISS:String = "!!!error 007 : ELEMENT MISS!";
		
		public var error:Errors;
		
		//CONSTRUCTOR
		public function ErrorEvents(type:String,error:Errors)
		{
			
			this.error = error;
			
			super(type,false,false);
		
		}
		
		//METHODS
		
		public override function clone():Event
		{
			
			return new ErrorEvents(this.type,this.error);
			
		}
		
		//END
	}
}